
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body >

<a onClick="window.daihao.showToast(JSON.stringify('你好，我是js'))"><div style="width:80px;
	            margin:0px auto;
	            padding:10px;
	            text-align:center;
	            border:2px solid #202020;" >
    <br>
    js调用android方法
    </div>
</a>
</body>
<script language="javascript">

function showMessage(json){
        var name = json.name;
        var city = json.city;

        alert(JSON.stringify(json));
        console.log("name="+name+",city="+city);
    }


</script>
</html>